#include "Httpserver.hpp"
#include<iostream>
void LoginHandler(HttpRequest &req,HttpResponse &res)
{
    //根据请求信息判断是否登录成功
    LOG(LogLevel::DEBUG)<<"LoginHandler"<<req.Path()<<req.Args();
}
int main()
{
    auto server=std::make_unique<Httpserver>(8080);
    server->Resgiter("/login",LoginHandler);
    server->start();
    return 0;
}